/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lucava.importer.uspeed.matcher;

import java.util.regex.MatchResult;

/**
 *
 * @author glenn
 */
public class InheritanceMatcher extends MatcherDecorator {

    public InheritanceMatcher(MatchResult matcher) {
        super(matcher);
    }

    public String getSourceClassName() {
        return this.matcher.group(1);
    }

    public String getModifier() {
        return this.matcher.group(2);
    }

    public String getAssociationName() {
        return this.matcher.group(7);
    }

    public String getTargetClassName() {
        return this.matcher.group(12);
    }

    @Override
    public String toString() {
        return "INHERITANCE => sourceClass : " + getSourceClassName() + " | "
                + "modifier : " + getModifier() + " | "
                + "name : " + getAssociationName() + " | "
                + "targetClass : " + getTargetClassName();
    }
}